package com.cosmic.pizza.service;

import com.cosmic.pizza.pojo.Address;
import com.cosmic.pizza.pojo.PageBean;

import java.util.List;
import java.util.Map;

public interface AddressService {
    PageBean<Address> findAddress(Integer uid, int pageSize, int currentPage);

    boolean addAddress(Integer uid, Address address);

    Map<String,String> findAddressAndNameById(Integer add_id);

    Address findFirstAddress(Integer uid);

    Address findAddressByaid(Integer add_id);

    boolean update(Address address);

    List<Address> findAddress(Integer uid);

    boolean delete(int add_id);

    boolean setDefault(int add_id);
}
